package com.yuw.threaddemo;

public class ThreadOne extends Thread {
    @Override
    public void run() {
        // 通过重写run方法达到多线程的业务逻辑处理的目的
        for (int i = 0; i < 20; i++) {
            System.out.println("Thread One:" + i);
            // 休眠1s
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        }
    }
}
